﻿namespace 命令模式
{
    // 抽象命令
    public abstract class DocumentCommand
    {
        public Document Document { get; set; }

        protected DocumentCommand(Document document)
        {
            Document = document;
        }

        public abstract void Execute();
    }
}
